<div class="wrapper wrapper-content" ng-controller="settingCtr">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>基本内容设置</h5>
                </div>

                <div class="ibox-content">
                    <div class="tabs-conttainer">
                        <ul class="nav nav-tabs">
                            <li ng-repeat="item in data.tabList" ng-class="{'active' : $index == data.index}"
                                ng-click="changeTab($index)"><a data-toggle="tab">{{item.name}}</a>
                            </li>
                        </ul>
                    </div>
                    <div class="row" style="margin-top: 20px;" ng-if="!data.loading">
                        <div class="col-sm-12">
                            <form class="form-horizontal" id="editForm">
                                <div ng-if="data.tabList[data.index].key == 'base'">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">年报最小金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="min_nianbao" ng-model="data.edit[data.tabList[data.index].key].min_nianbao"/>
                                        </div>
                                        <label class="col-sm-2 control-label">年报最大金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="max_nianbao" ng-model="data.edit[data.tabList[data.index].key].max_nianbao"/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">注销最小金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="min_zhuxiao" ng-model="data.edit[data.tabList[data.index].key].min_zhuxiao"/>
                                        </div>
                                        <label class="col-sm-2 control-label">注销最大金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="max_zhuxiao" ng-model="data.edit[data.tabList[data.index].key].max_zhuxiao"/>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">公司注册最小金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="min_register" ng-model="data.edit[data.tabList[data.index].key].min_register"/>
                                        </div>
                                        <label class="col-sm-2 control-label">公司注册最大金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="max_register" ng-model="data.edit[data.tabList[data.index].key].max_register"/>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">公司变更最小金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="min_change" ng-model="data.edit[data.tabList[data.index].key].min_change"/>
                                        </div>
                                        <label class="col-sm-2 control-label">公司变更最大金额：</label>
                                        <div class='col-sm-3'>
                                            <input class="form-control" min="0" type="number" required name="max_change" ng-model="data.edit[data.tabList[data.index].key].max_change"/>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">使用页面</label>
                                        <div class="col-sm-8">
                                            <label>默认
                                                <input type="radio" name="usepage" ng-model="data.edit[data.tabList[data.index].key].usepage" value="1">
                                            </label>
                                            <label>
                                                新页面
                                                <input type="radio" name="usepage" ng-model="data.edit[data.tabList[data.index].key].usepage" value="2">
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-8">
                                        <button type="button" class="btn btn-success" ng-click="commit()">保存</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>